package cqcvc.edu.cn.servlet;

import cqcvc.edu.cn.base.BaseDao;
import cqcvc.edu.cn.dao.ActivityDao;
import cqcvc.edu.cn.entity.ActivityInfo;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.Connection;
import java.util.List;

@WebServlet(name = "DBConnTestServlet",urlPatterns = "/db")
public class DBConnTestServlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        ActivityDao dao=new ActivityDao();
        List<ActivityInfo> list=dao.findAll();
    }
}
